package com.blank.task08;

public class ConsumerInformation {
    private int talkTime;  //通话时长
    private double netFlow;  //上网流量
    private double monthlyRates;   //每月资费

    public ConsumerInformation() {
    }

    public ConsumerInformation(int talkTime, double netFlow, double monthlyRates) {
       setMonthlyRates(monthlyRates);
       setNetFlow(netFlow);
       setTalkTime(talkTime);
    }

    public int getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(int talkTime) {
        this.talkTime = talkTime;
    }

    public double getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(double netFlow) {
        this.netFlow = netFlow;
    }

    public double getMonthlyRates() {
        return monthlyRates;
    }

    public void setMonthlyRates(double monthlyRates) {
        this.monthlyRates = monthlyRates;
    }
    public void conInfoShow(){
        System.out.println("通话时长为:"+getTalkTime()+",上网流量:"+getNetFlow()+",每月资费:"+getMonthlyRates());
    }
}
